/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wo.cput.pattern.template;

/**
 *
 * @author Administrator
 */
public abstract class Meal {
    public final void doMeal(){
        prepareMeal();
        cook();
        eat();
        cleanup();
        
    }
    
    public abstract void prepareMeal();
    public abstract void cook();
    public void eat(){
        System.out.println("eating");
    }
    public abstract void cleanup();
    
}
